<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>这是个VUE.js示例文件</title>
    <script src="vue.js"></script>
</head>

<body>
    <div id="app">
        <p>
            {{msg}}
        </p>
        <p>
            {{name}}
        </p>
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                msg: 'Hello Vuejs!',
                name: '定义初始数据'
            }
        })
        console.log(vm.$data.name);
        vm.name = '改变后的数据！';
        console.log(vm.name);
    </script>
</body>

</html>